package unidirectional.join.manytomany;

import java.util.Set;

import org.apache.commons.lang.builder.ToStringBuilder;

public class PersonUnidirectionalJoinManytomany {
	private Long id;
	private String name;
	private Set<AddressUnidirectionalJoinManytomany> addresses;

	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setAddresses(Set<AddressUnidirectionalJoinManytomany> addresses) {
		this.addresses = addresses;
	}
	public Set<AddressUnidirectionalJoinManytomany> getAddresses() {
		return addresses;
	}
	
	@Override
	 public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

}
